﻿using _17bangMVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace _17bangMVC.Controllers
{
    public class ShardController : Controller
    {
        // GET: Shard
        [ChildActionOnly]
        public ActionResult _KeyWord()
        {
            ArticleListItemModel model = new ArticleListItemModel
            {
                KeyWords = new List<KeyWordModel>
                {
                    new KeyWordModel{Name="编程开发",Number ="242",},
                    new KeyWordModel{Name = "C#",Number = "97"},
                    new KeyWordModel{Name = "JAVA",Number = "71"},
                    new KeyWordModel{Name = "工具软件",Number = "68"},
                    new KeyWordModel{Name = "JavaScript",Number = "55"},
                    new KeyWordModel{Name = "顾问咨询",Number = "32"},
                    new KeyWordModel{Name = "html",Number = "25"},
                    new KeyWordModel{Name = "VisualStudio",Number = "24"},
                    new KeyWordModel{Name = "操作系统",Number = "19"},
                    new KeyWordModel{Name = "职场",Number = "18"},
                    new KeyWordModel{Name = "Python",Number = "18"},
                    new KeyWordModel{Name = "falv",Number = "18"},
                    new KeyWordModel{Name = "SQL",Number = "14"},
                    new KeyWordModel{Name = ".net",Number = "14"},
                    new KeyWordModel{Name = "css",Number = "13"},
                    new KeyWordModel{Name = "Linux",Number = "12"},
                }
            };
            return PartialView(model);
        }

        [ChildActionOnly]
        public ActionResult _Tabs()
        {
            ArticleListItemModel model = new ArticleListItemModel
            {
                Tabs = new List<TabsModel>
                {
                    new TabsModel { Title = "共扫描目标：", Body = "9个" },
                    new TabsModel { Title = "当天休息：", Body = "1人" },
                    new TabsModel { Title = "已交作业：", Body = "5份" },
                    new TabsModel { Title = "请假：", Body = "2人" },
                    new TabsModel { Title = "未交作业：", Body = "1人" },
                }
            };
            return PartialView(model);
        }
    }
}